package cn.juque.workflow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>请假申请单信息</li>
 * </ul>
 * @date 2023-01-31 16:31:27
 **/
@Data
@TableName(value = "PRO_LEAVE_INFO")
public class LeaveInfo extends BaseEntity {

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 标题
     */
    @TableField(value = "TITLE")
    private String title;

    /**
     * 开始时间
     */
    @TableField(value = "START_TIME")
    private Date startTime;

    /**
     * 结束时间
     */
    @TableField(value = "END_TIME")
    private Date endTime;

    /**
     * 请假原因
     */
    @TableField(value = "REASON")
    private String reason;

    /**
     * 流程实例ID
     */
    @TableField(value = "PROCESS_INSTANCE_ID")
    private String processInstanceId;

    /**
     * 审批状态：1-待提交；2-审批中；3-已完成；4-已驳回
     */
    @TableField(value = "APPROVE_STATUS")
    private String approveStatus;
}
